home *** CD-ROM | disk | FTP | other *** search
- unit Unit1;
- interface
- uses
- Windows, Messages, SysUtils, Classes, Graphics,
- Controls, Forms, Dialogs, StdCtrls;
- type
- TForm1 = class(TForm)
- Label1: TLabel;
- Label2: TLabel;
- procedure FormCreate(Sender: TObject);
- private
- procedure Test;
- public
- end;
- var
- Form1: TForm1;
- x : Integer = 10; // <<<<
- y : Integer = 99; // <<<<
-
- implementation
- {$R *.DFM}
-
- procedure TForm1.Test(); // <<<<
- begin
- label1.caption := 'x= ' + inttostr(x);
- label2.caption := 'y= ' + inttostr(y);
- end;
-
- procedure TForm1.FormCreate(Sender: TObject);
- begin
- test(); // <<<<
- end;
- end.